import 'package:json_annotation/json_annotation.dart';

enum Gender {
  @JsonValue('MALE')
  male,

  @JsonValue('FEMALE')
  female,
}


Gender? valueOfGender(String value) {
  if (value == 'FEMALE') {
    return Gender.female;
  }
  return Gender.male;
}
